package com.kaili.zuul.utils;

import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;

public class RequestParamUtils {


    public static String getRequestParam(HttpServletRequest request){
        BufferedReader reader = null;
        String line = "";
        String xmlString = null;
        try {
            reader = request.getReader();
            StringBuffer inputString = new StringBuffer();

            while ((line = reader.readLine()) != null) {
                inputString.append(line);
            }
            xmlString = inputString.toString();
        } catch (Exception e) {
//            throw new YppException(PayException.xmlParseError);
        }
        return xmlString;
    }
}
